<?php $this->Html->addCrumb('Edit Content Pages');?>




<?php if (isset($options) && !empty($options)) { ?>

  <?php echo $this->Session->flash();?>

<p>Select a page below to edit the content of that page</p>

<?php
echo $this->TWSForm->create( array(
    'inputDefaults' => array(
        'div' => array('class'=>'row')),
        'class'=>'inlineForm',
        'type'=>'post',
        'url'=>array('controller' => 'contents', 'action' => 'view', 'admin'=>true)
    ));
echo $this->TWSForm->input('id', array('name'=>'id', 'type'=>'select', 'label'=>'Content Pages', 'options'=>$options));
echo $this->TWSForm->input('selection', array('name'=>'selection', 'type'=>'hidden', 'value'=>'contentPage'));
echo $this->TWSForm->end( array("label"=>"Edit", "class"=>"button"));
?>

<?php } else {

  echo '<p>No content pages are currently available for editing.</p>';

}

?>

